#include<stdio.h>
void main()
{
	int i, j, s = 0, temp = 0;
	for (i = 1; i<=9; i++)
	{
		temp = 1;
		for (j = 1; j <= i; j++)
			temp *= i;
		s += temp;
	}
	printf("s=%d\n", s);
}